<!-- 模态框 For Add New Field -->
<div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <p style="font-size: 16px" class="modal-title">公司信息</p>
            </div>
            <!--核心内容-->
            <div class="modal-body" style="min-height: 200px; padding:20px 20px; font-size:14px; font-weight:400">
                <form class="form-horizontal" role="form" on-finish-render-filters>
                    <div class="form-group" ng-repeat="row in cols">
                        <span class="col-sm-2 control-label" style="padding-top:1px">{{row.name}}</span>
                        <div class="col-sm-8" ng-switch="row.type">
                            <div ng-switch-when="text">
                                <input ng-model="line[row.field]" type="text" class="form-control" ng-disabled="row.disabled" >
                            </div>
                            <div ng-switch-when="label"><span>{{line[row.field]}}</span></div>
                            <!--地址选择组件-->
                            <div ng-switch-when="address" style="margin-top: 3px">
                                <div class="input-group" style="margin-bottom:8px">
                                <select ng-model="Addrs[row.field].selProvince" style="width:120px; float:left" ng-change="selectChina(0, row.field);"
                                        ng-options="x for x in Addrs[row.field].libs.provinces"></select>
                                <select ng-model="Addrs[row.field].selCity" style="width:120px; float:left" ng-change="selectChina(1, row.field);"
                                        ng-options="x for x in Addrs[row.field].libs.citys"></select>
                                <select ng-model="Addrs[row.field].selCounty" style="width:120px; float:left"
                                        ng-options="x for x in Addrs[row.field].libs.countys"></select>
                                </div>
                                <div class="input-group">
                                    <span class="input-group-btn">
                                        <input type="text" class="info" style="width:120px;font-size:12px" 
                                        value="{{Addrs[row.field].selProvince}} {{Addrs[row.field].selCity}} {{Addrs[row.field].selCounty}}"
                                         disabled>
                                    </span>
                                    <input type="text" ng-model="line[row.field]" class="form-control" placeholder="街道、乡镇">
                                </div>
                            </div>
                        </div>
                        <!-- End middle col -->
                        <label class="col-sm-2" ng-show="row.notNull"> *</label>
                    </div>
                </form>
            </div>
            <div class="modal-footer"><button type="button" class="btn btn-info" ng-click="setCompany()">提交</button></div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<!-- End 模态框 For Add New Field -->
